package com.mvu.banana.tools;

/**
 * Class description...
 *
 * @author gantz
 */
public class SetMethod extends JavaMethod {
  public SetMethod(JavaClass parent, JavaField field) {
    super(parent);
    withName("set", JavaClass.capitalize(field.name));
    withReturnType(parent.name);
    withParameters(field.type);
    addLine("this.", field.name, " = p0");
    addLine("return this");
  }
}
